@media screen and (min-width: 540px) {
    html {
      font-size: 54px !important;
    }
  }
/* 给body进行样式初始化（注意！制作过程中，在这一步，需要定义页面的最大和最小支持宽度max-width、min-width。） */
body {
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    background-color: #fff;
    font-size: 14px !important;
    line-height: 1.5;
    font-family: -apple-system,Helvetica,sans-serif;
}
/* CSS3盒模型 */

/* 点击高亮需要清除，设置为transparent变成透明 */
*{
    -webkit-tap-highlight-color: transparent;
}
/* 在移动端浏览器默认的外观在IOS上加上这个属性才能给按钮和输入框自定义样式 */
input{
    -webkit-appearance: none;
}
/* 禁用长按页面时的弹出菜单 */
img,a{-webkit-touch-callout: none;}

/* 制作顶部提示部分 */
.top-tips {
    position: fixed;
    top: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    background-color: #333;
    text-align: center;
    color: #fff;
}
.top-tips div:nth-child(1){
    float: left;
    width: 8%;
}
.top-tips div:nth-child(1) img{
    width: 10px;
    vertical-align: middle;
}
.top-tips div:nth-child(2){
    float: left;
    width: 10%;
}
.top-tips div:nth-child(2) img{
    width: 30px;
    vertical-align: middle;
}
.top-tips div:nth-child(3){
    float: left;
    width: 57%;
}
.top-tips div:nth-child(4){
    float: left;
    width: 25%;
    height: 45px;
    background-color: #c82519;
}
/* 搜索框 */
.search-box {
    position: fixed;
    top:44px;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: #c82519;
    line-height: 44px;
    z-index: 20;
}
.search-box .btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
}
.search-box .btn span {
    display: block;
    width: 20px;
    height: 18px;
    margin: 14px 0 0 15px;
    background: url(../images/s-btn.png) no-repeat center;
    background-size: 20px 18px;
}
.search-box .login{
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    color: #fff;
}
.search-box .search {
    position: relative;
    height: 30px;
    margin: 7px 50px;
    /* 左右margin为左右元素的width加serch-box里的margin */
    border-radius: 15px;
    background-color: #fff;
}
.search-box .search span {
    position: relative;
    float: left;
    width: 20px;
    height: 15px;
    margin: 8px 8px 0 15px;
    background: url(../images/logo2.png) no-repeat 0 0;
    background-size: 20px 15px;
}
.search-box .search span::after {
    /* 伪元素制作分割竖线 */
    position: absolute;
    right: -8px;
    content: "";
    width: 1px;
    height: 15px;
    background-color: #ccc;
}
.search-box .search i{
    float: left;
    width: 16px;
    height: 15px;
    margin: 8px 0 0 5px;
    background: url(../images/jd-sprites.png) no-repeat -83px 0;
    background-size: 200px 200px;
    /* 二倍精灵图 */
}
.search-box .search input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 30px;
    padding: 0 20px 0 78px;
    border: none;
    background-color: transparent;
    font-size: 12px;
}
/* 主要内容区域 */
.content {
    width: 100%;
    margin-top: 44px;
    background-color: #f6f6f6;
}
/* 焦点图区域 */
.banner {
    position: relative;
    width: 100%;
    height: 4.986667rem;
    overflow: hidden;
}
.banner .banner-bg {
    position: absolute;
    left: -25%;
    width: 150%;
    height: 145px;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    background-image: linear-gradient(180deg,red,rgb(252, 128, 128));
}
/* 定位轮播图,利用li的绝对定位的方式摆放li所以ul的宽度并不重要，以后只要用ul的translateX进行移动就行 */
.banner ul {
    position: relative;
    margin: 0;
    list-style: none;
}
.banner ul li {
    position: absolute;
    left: 0;
    top:0;
    width: 100%;
    height: 187px;
    padding: 44px 3% 0;
    box-sizing: border-box;
}
.banner ul li:nth-child(2){
    left: 100%;
}
.banner ul li:nth-child(3){
    left: 200%;
}
.banner ul li:nth-child(4){
    left: 300%;
}
.banner ul li:nth-child(5){
    left: 400%;
}
.banner ol {
    position: absolute;
    left: 50%;
    bottom: .266667rem;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    transform: translate(-50%);
}
.banner ol li {
    float: left;
    width: .133333rem;
    height: .133333rem;
    margin: 0 2px;
    border-radius: 50%;
    background: rgba(185, 210, 205, 0.5);
}
.banner ol li.current {
    background-color: red;
}
img {
    max-width: 100%;
}
/* 优惠活动 */
.off {
    width: 100%;
    overflow: hidden;
}
.off a {
    display: block;
    float: left;
    width: 33.333%;
}
/* market nav */
.market-nav {
    position: relative;
    width: 100%;
    height: 162px;
    /* 绝对定位的子元素不会自动撑高相对定位的父元素，所以需要设置高度，不然内容无法显示 */
    overflow: hidden;
}
.market-nav .nav {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.market-nav .nav-2 {
    /* nav-1 和 nav-2 只有left值不同
    可以设置两个div有同一个类名（nav）这样样式就不用写两份了，
    后期再第二个nav加一个类名来设置位置 */
    position: absolute;
    left: 100%;
}
.market-nav a {
    float: left;
    display: block;
    width: 20%;
    text-decoration: none;
    color: #6c6c6c;
    text-align: center;
}
.market-nav a img {
    display: block;
    width: 40px;
    margin: 10px auto 0;
}
.market-nav a span {
    display: block;
    height: 18px;
    margin-top: 6px;
    line-height: 18px;
    font-size: 12px;
}
/* 新人专享 */
.new {
    margin: 10px;
    overflow: hidden;
}
.new a {
    float: left;
    width: 50%;
}